package cn.hdu.liang.core.service.user;

import cn.hdu.liang.core.bean.user.Addr;
import cn.hdu.liang.core.query.user.AddrQuery;
import cn.itcast.common.page.Pagination;

import java.util.List;


public interface AddrService {

    public Integer addAddr(Addr addr);

    public Addr getAddrByKey(Integer id);

    public List<Addr> getAddrsByKeys(List<Integer> idList);

    public Integer deleteByKey(Integer id);

    public Integer deleteByKeys(List<Integer> idList);

    public Integer updateAddrByKey(Addr addr);

    public Pagination getAddrListWithPage(AddrQuery addrQuery);

    public List<Addr> getAddrList(AddrQuery addrQuery);
}
